.class Lcom/waiqin365/lightapp/kaoqin/ah;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/view/ec;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

.field final synthetic b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->a:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8

    const v7, 0x7f0803b1

    const/4 v4, 0x0

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->a:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->f()Ljava/util/HashMap;

    move-result-object v1

    const-string/jumbo v0, "hour"

    invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string/jumbo v2, "minute"

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, ":"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    :try_start_0
    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string/jumbo v5, "HH:mm"

    invoke-direct {v2, v5}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    move-object v2, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->a:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->getTag()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v6, v5, 0x1

    if-le v0, v6, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v6, v5, 0x1

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v6, v5, 0x1

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v6, v5, 0x1

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->q()I

    move-result v0

    if-ne v0, v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v1, v5, 0x1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    move v1, v3

    move v4, v3

    :goto_1
    if-eqz v1, :cond_0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->f()Ljava/util/HashMap;

    move-result-object v3

    const-string/jumbo v0, "hour"

    invoke-interface {v3, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string/jumbo v1, "minute"

    invoke-interface {v3, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v5, ":"

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    :try_start_1
    new-instance v5, Ljava/text/SimpleDateFormat;

    const-string/jumbo v6, "HH:mm"

    invoke-direct {v5, v6}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;
    :try_end_1
    .catch Ljava/text/ParseException; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v0

    :goto_2
    if-eqz v4, :cond_2

    invoke-virtual {v2, v0}, Ljava/util/Date;->after(Ljava/util/Date;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->r(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->s(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->a:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setDate(Ljava/lang/Object;)V

    :cond_0
    :goto_3
    return-void

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/text/ParseException;->printStackTrace()V

    move-object v2, v0

    goto/16 :goto_0

    :cond_1
    if-lez v5, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v6, v5, -0x1

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v6, v5, -0x1

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v6, v5, -0x1

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->q()I

    move-result v0

    if-ne v0, v3, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->m(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/util/List;

    move-result-object v0

    add-int/lit8 v1, v5, -0x1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    move v1, v3

    goto/16 :goto_1

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/text/ParseException;->printStackTrace()V

    move-object v0, v1

    goto :goto_2

    :cond_2
    if-nez v4, :cond_0

    invoke-virtual {v0, v2}, Ljava/util/Date;->after(Ljava/util/Date;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->t(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->b:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->u(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ah;->a:Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/DateViewNoClear_vertical;->setDate(Ljava/lang/Object;)V

    goto :goto_3

    :cond_3
    move-object v0, v1

    move v1, v4

    goto/16 :goto_1
.end method
